<div style="border: hidden" class="{{item.subCompanys.length>0?'tree-folder':'tree-item'}}" ng-init="showTrash[item.id]=false" ng-mouseenter="showTrash[item.id]=(item.subCompanys.length==0)?true:showTrash[item.id]" ng-mouseleave="showTrash[item.id]=(item.subCompanys.length==0)?false:showTrash[item.id]">
    <div style="border: hidden" ng-if="item.subCompanys.length>0" class="tree-folder-header" style="display: block;" ng-mouseenter="showTrash[item.id]=true" ng-mouseleave="showTrash[item.id]=false" >
        <i class="fa fa-plus" ng-show="!showDetail" ng-click="$parent.showDetail=!showDetail"></i>
        <i class="fa fa-minus" ng-show="showDetail" ng-click="$parent.showDetail=!showDetail"></i>
        <div style="border: hidden" class="tree-folder-name">
            &nbsp;&nbsp;
            <span ng-click="changeFunction({id:item.id})" style="color: #10a54a" ng-if="item.companyBaseInfo.alias!=undefined&&item.companyBaseInfo.alias!=''">
                <{{item.companyBaseInfo.alias!=""?item.companyBaseInfo.alias:""}}>&nbsp;&nbsp;&nbsp;&nbsp;
            </span>
            <b ng-click="changeFunction({id:item.id})">{{item.companyBaseInfo.name}}</b>
            <span ng-click="changeFunction({id:item.id})" ng-if="item.companyBaseInfo.englishName!=undefined&&item.companyBaseInfo.englishName!=''">
                &nbsp;&nbsp;
                <i style="color: #2ea8e5">({{item.companyBaseInfo.englishName}})</i>
            </span>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span ng-show="showTrash[item.id]" ng-click="deleteFunction({id:item.id})"><i class="fa fa-trash-o"></i></span>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span ng-show="showTrash[item.id]" ng-click="addFunction({id:item.id})"><i class="fa fa-plus"></i></span>
        </div>
    </div>
    <div style="border: hidden" ng-show="showDetail&&onlyTop!='true'" ng-if="item.subCompanys.length>0" ng-init="rep=item.subCompanys" class="tree-folder-content">
        <div style="border: hidden" ng-repeat="item in rep" ng-include="template">
        </div>
    </div>
    <div style="border: hidden" ng-if="item.subCompanys.length==0" class="tree-item-name">
        <i class="fa fa-circle-o"></i>
        &nbsp;
        <span ng-click="changeFunction({id:item.id})" style="color: #10a54a" ng-if="item.companyBaseInfo.alias!=undefined&&item.companyBaseInfo.alias!=''">
            <{{item.companyBaseInfo.alias!=""?item.companyBaseInfo.alias:""}}>&nbsp;&nbsp;&nbsp;&nbsp;
        </span>
        <b ng-click="changeFunction({id:item.id})">{{item.companyBaseInfo.name}}</b>
        <span ng-click="changeFunction({id:item.id})" ng-if="item.companyBaseInfo.englishName!=undefined&&item.companyBaseInfo.englishName!=''">
            &nbsp;&nbsp;
            <i style="color: #2ea8e5">({{item.companyBaseInfo.englishName}})</i>
        </span>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <span ng-show="showTrash[item.id]" ng-click="deleteFunction({id:item.id})"><i class="fa fa-trash-o"></i></span>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <span ng-show="showTrash[item.id]" ng-click="addFunction({id:item.id})"><i class="fa fa-plus"></i></span>
    </div>
</div>
